package com.example.myproject.repository;

import com.example.myproject.model.Bounty;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BountyRepository extends JpaRepository<Bounty, Long> {
    List<Bounty> findAllByCreatorId(Long creatorId);
    List<Bounty> findAllByBountyStatus(String status);

}
